package feeinterface.protocol.req;

/**
 * 数据交换异常
 * 
 * @author 黄杰
 * 
 */
public class ExchangeException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 异常状态码
	 */
	private int status;

	/**
	 * 获取状态码
	 * 
	 * @return
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * 设置状态码
	 * 
	 * @param status
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * 构造函数
	 * 
	 * @param status
	 *            状态码
	 * @param msg
	 *            异常信息
	 */
	public ExchangeException(int status, String msg) {
		super(msg);
		this.status = status;
	}
}
